/* Tests producer/consumer communication with different numbers of threads.
 * Automatic checks only catch severe problems like crashes.
 */

#include <stdio.h>
#include "tests/threads/tests.h"
#include "threads/malloc.h"
#include "threads/synch.h"
#include "threads/thread.h"
#include "threads/narrow-bridge.c"


void narrow_bridge(unsigned int num_vehicles_left, unsigned int num_vehicles_right,
        unsigned int num_emergency_left, unsigned int num_emergency_right);


void test_narrow_bridge(void)
{
    //narrow_bridge(0, 0, 0, 0);
    narrow_bridge(10, 10, 0, 0);

    pass();
}


void narrow_bridge(unsigned int num_vehicles_left, unsigned int num_vehicles_right,
        unsigned int num_emergency_left, unsigned int num_emergency_right)
{
    //msg("NOT IMPLEMENTED");
    /* FIXME implement */
	start_narrow_bridge(num_vehicles_left, num_vehicles_right,
        num_emergency_left, num_emergency_right);
}
